package cate.game.fight.hero.dyn;

import cate.common.table.dynins.DynHeroLevelRow;
import cate.common.table.item.hero.row.HeroBaseRow;
import cate.game.attr.FightAttr;
import cate.game.role.bag.hero.Hero;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class DynFavorableUtil extends DynItemUtil {

	@Override
	public void setUp(Hero hero, HeroBaseRow heroTpl, DynHeroLevelRow itemTpl) {
		if (itemTpl.favorableCode == null) {
			return;
		}
		hero.exPart.addAttr(new FightAttr(itemTpl.favorableCode));
	}
}
